#define _CRT_SECURE_NO_WARNINGS

#include<iostream>
using namespace std;

int fun(int i)
{
	int ret = 0;
	while (i)
	{
		ret += i % 10;
		i /= 10;
	}
	return ret == 5 ? 1 : 0;
}

int main()
{
	int count = 0;
	for (int i = 10; i < 1000; i++)
	{
		if (fun(i) == 1)
		{
			count++;
		}
	}
	cout << count << endl;
	return 0;
}